import request from '@/utils/request'

// 查询制程检验原辅料消耗在线报废留样统计列表
export function listPricemain(query) {
  return request({
    url: '/Productionline/pricemain/list',
    method: 'get',
    params: query
  })
}

// 查询制程检验原辅料消耗在线报废留样统计详细
export function getPricemain(id) {
  return request({
    url: '/Productionline/pricemain/' + id,
    method: 'get'
  })
}

// 新增制程检验原辅料消耗在线报废留样统计
export function addPricemain(data) {
  return request({
    url: '/Productionline/pricemain',
    method: 'post',
    data: data
  })
}

// 修改制程检验原辅料消耗在线报废留样统计
export function updatePricemain(data) {
  return request({
    url: '/Productionline/pricemain',
    method: 'put',
    data: data
  })
}

// 删除制程检验原辅料消耗在线报废留样统计
export function delPricemain(id) {
  return request({
    url: '/Productionline/pricemain/' + id,
    method: 'delete'
  })
}
